package com.peenongsaban.freelance.action;


import com.opensymphony.xwork2.ActionSupport;
import com.peenongsaban.freelance.model.ServicePageModel;
import com.peenongsaban.freelance.service.ServicePageService;

public class ServicePageAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	
	ServicePageModel model = new ServicePageModel();

	public ServicePageModel getModel() {
		return model;
	}

	public void setModel(ServicePageModel model) {
		this.model = model;
	}

	public String showServicePage(){
		ServicePageService service = new ServicePageService();
		model.setListAptitudeType(service.getListAptitudeType());
		model.setListServiceRecommend(service.getListServiceMostPopular());
		return SUCCESS;
	}
}
